import os

from langchain_openai import OpenAI

llm=OpenAI(
    api_key=os.environ['OPENAI_API_KEY']#字符串的OPENAI_API_KEY 必须与环境变量中的变量名一致




)